learn CSS

Types of CSS

1. inline CSS

HELLO BY MAHAVEER


hi apple


this Orange


that mango

2. internal CSS

Heading by mahaveer

paragraph Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptas, quae.

for both internal CSS and inline CSS

Question

question:1 Create a div tag with background-color red (internal css)
question:2 inside div tag create a h1 tag with color white (inline css)
question:3 Set width(300px) and height(200px) of div tag (internal css)
question:4 create P tag after h1 tag and set its color to blue (inline css)

q1 -->hello, THIS IS MAHAVEER

q2 -->Error mackes clever

q3 -->use width and height in div tag already done in div above

HIII mahaveer

q4--> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat ullam error ad facere ea molestiae fugit tempora totam omnis non!

3. external

we must create a new file with .css extension and link that file with html using link tag in head section.